package model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class Category implements java.io.Serializable{
    @EqualsAndHashCode.Include
    private  Integer id;
    private String name;
    private  Integer parentId;//父类别
    private  String description;
    List<Category> children;
}
